<?php

namespace App\Http\Controllers\Socket;

use Swoole\WebSocket\Frame;
use Swoole\Http\Request as SwoRequest;
use Swoole\WebSocket\Server as SwoWsServer;

class IndexController
{
    public function open(SwoWsServer $server, SwoRequest $swoRequest)
    {
        dd('open');
    }

    public function message(SwoWsServer $server, Frame $frame)
    {
        dd('message');
    }

    public function close(SwoWsServer $server, int $fd)
    {
        dd('close');
    }
}